import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Indexcontainer from '@/views/IndexContainer'
import Index from '@/views/index'
import Hourlottery from '@/views/hourlottery'
import Draw from '@/views/draw'
import Drawdetail from '@/views/drawdetail'
import Home from '@/views/home'
import Recharge from '@/views/recharge'
import Withdraw from '@/views/withdraw'
import Guesslist from '@/views/guesslist'
import Accountlist from '@/views/accountlist'
import Messagelist from '@/views/messagelist'
import Chasinglist from '@/views/chasinglist'
import Detail from '@/views/detail'
import Chasingdetail from '@/views/chasingdetail'
import Login from '@/views/login'
import Register from '@/views/register'
import Safe from '@/views/safe'
import Person from '@/views/person'
Vue.use(Router)

export default new Router({
  routes: [
    {
      	path: '/',
      	name: 'Indexcontainer',
      	component: Indexcontainer,
        children:[
          {
            path:"",
            name:"Index",
            component:Index,
            meta:{
              active:"index"
            }
          },
          {
            path:"hourlottery",
            name:"Hourlottery",
            component:Hourlottery,
            meta:{
              active:"index"
            }
          },
          {
            path:"draw",
            name:"draw",
            component:Draw,
            meta:{
              active:"draw"
            }
          },
          {
            path:"drawdetail/:id",
            name:"drawdetail",
            component:Drawdetail,
            meta:{
              active:"draw"
            }
          },
          {
            path:"home",
            name:"home",
            component:Home,
            meta:{
              active:"home"
            }
          }
        ]
    },
    {
      path:'/guessdetail/:id',
      name: 'Detail',
      component: Detail,
    },
    {
      path:'/chasingdetail/:id',
      name: 'Chasingdetail',
      component: Chasingdetail,
    },
    {
      path:'/login',
      name: 'Login',
      component: Login,
    },
    {
      path:'/person',
      name: 'Person',
      component: Person,
    },
    {
      path:'/safe',
      name: 'Safe',
      component: Safe,
    },
    {
      path:'/register',
      name: 'Register',
      component:Register,
    },
    {
      path:'/recharge',
      name: 'Recharge',
      component: Recharge,
    },
    {
      path:'/withdraw',
      name: 'Withdraw',
      component: Withdraw,
    },
    {
      path:'/guesslist',
      name: 'Githdraw',
      component: Guesslist,
    },
    {
      path:'/accountlist',
      name: 'Accountlist',
      component: Accountlist,
    },
    {
      path:'/messagelist',
      name: 'Messagelist',
      component: Messagelist,
    },
    {
      path:'/chasinglist',
      name: 'Chasinglist',
      component: Chasinglist,
    }
  ]
})
